@restless-dreams/orbit 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/README.md +5 -2
  2. package/dist/bin/orbit.js +2972 -213
  3. package/dist/bin/orbit.js.map +25 -13
  4. package/dist/{chunk-mtrnm0yc.js → chunk-fkdfgtx9.js} +3156 -2854
  5. package/dist/chunk-fkdfgtx9.js.map +75 -0
  6. package/dist/{chunk-7n00wx0t.js → chunk-y748hzcr.js} +2 -2
  7. package/dist/{chunk-0gwh723s.js → chunk-zze4tc9n.js} +2 -2
  8. package/dist/core/branch-colors.d.ts +57 -0
  9. package/dist/core/document-source.d.ts +1 -1
  10. package/dist/core/editing.d.ts +8 -5
  11. package/dist/core/engine/scene.d.ts +5 -4
  12. package/dist/core/engine/views.d.ts +10 -2
  13. package/dist/core/index.d.ts +10 -0
  14. package/dist/core/input-controller.d.ts +7 -0
  15. package/dist/core/languages.d.ts +2 -0
  16. package/dist/core/node-attributes.d.ts +1 -1
  17. package/dist/core/other-apps/freemind.d.ts +8 -0
  18. package/dist/core/other-apps/icons.d.ts +16 -0
  19. package/dist/core/other-apps/ideas.d.ts +76 -0
  20. package/dist/core/other-apps/import.d.ts +28 -0
  21. package/dist/core/other-apps/inflate.d.ts +22 -0
  22. package/dist/core/other-apps/markup.d.ts +51 -0
  23. package/dist/core/other-apps/notes.d.ts +80 -0
  24. package/dist/core/other-apps/opml.d.ts +26 -0
  25. package/dist/core/other-apps/reading.d.ts +36 -0
  26. package/dist/core/other-apps/xmind.d.ts +14 -0
  27. package/dist/core/other-apps/zip.d.ts +37 -0
  28. package/dist/core/print-layout.d.ts +70 -0
  29. package/dist/core/renderer/content-painter.d.ts +30 -0
  30. package/dist/core/renderer/dom.d.ts +15 -0
  31. package/dist/core/renderer/families.d.ts +35 -0
  32. package/dist/core/renderer/label-painter.d.ts +93 -0
  33. package/dist/core/renderer/node-painter.d.ts +113 -0
  34. package/dist/core/renderer/numbers.d.ts +2 -0
  35. package/dist/core/renderer/options.d.ts +12 -0
  36. package/dist/core/renderer/rings-and-links.d.ts +23 -0
  37. package/dist/core/renderer/scene-helpers.d.ts +33 -0
  38. package/dist/core/renderer/trees.d.ts +22 -0
  39. package/dist/core/svg-renderer.d.ts +6 -109
  40. package/dist/core/types.d.ts +9 -1
  41. package/dist/core/web-page/page.d.ts +2 -1
  42. package/dist/core/web-page/runtime.d.ts +1 -1
  43. package/dist/index.js +2935 -26
  44. package/dist/index.js.map +18 -6
  45. package/dist/marked/index.js +2 -2
  46. package/dist/react/index.js +2 -2
  47. package/dist/web-page.js +79 -79
  48. package/llms-full.txt +205 -5
  49. package/llms.txt +2 -1
  50. package/package.json +1 -1
  51. package/skills/orbit/SKILL.md +1 -1
  52. package/skills/orbit/references/editing.md +2 -1
  53. package/skills/orbit/references/format.md +28 -0
  54. package/skills/orbit/references/guide.md +25 -1
  55. package/skills/orbit/references/import-export.md +115 -0
  56. package/skills/orbit/references/languages.md +1 -0
  57. package/skills/orbit/references/recipes.md +9 -0
  58. package/skills/orbit/references/theming.md +15 -0
  59. package/dist/chunk-mtrnm0yc.js.map +0 -63
  60. /package/dist/{chunk-7n00wx0t.js.map → chunk-y748hzcr.js.map} +0 -0
  61. /package/dist/{chunk-0gwh723s.js.map → chunk-zze4tc9n.js.map} +0 -0
package/README.md CHANGED
@@ -6,7 +6,7 @@ Mind maps written in markdown and explored like a solar system.
6
6
 
7
7
  ![A map of a product roadmap: the orbit spins, the camera flies into a branch and out to the overview of the whole map](docs/media/tour.webp)
8
8
 
9
- **[Website](https://orbit.hyuchia.com)** · [Playground](https://orbit.hyuchia.com/playground) · [Guide](docs/guide.md) · [Map format](docs/format.md) · [Recipes](docs/recipes.md) · [Theming](docs/theming.md) · [Extending](docs/extending.md) · [Editing](docs/editing.md) · [Map tools for AI](docs/map-tools.md) · [Pictures and videos](docs/media.md) · [Languages](docs/languages.md) · [Accessibility](docs/accessibility.md) · [Coding agents](docs/agents.md) · [API reference](docs/api/README.md)
9
+ **[Website](https://orbit.hyuchia.com)** · [Playground](https://orbit.hyuchia.com/playground) · [Guide](docs/guide.md) · [Map format](docs/format.md) · [Recipes](docs/recipes.md) · [Theming](docs/theming.md) · [Extending](docs/extending.md) · [Editing](docs/editing.md) · [Map tools for AI](docs/map-tools.md) · [Maps from other apps](docs/import-export.md) · [Pictures and videos](docs/media.md) · [Languages](docs/languages.md) · [Accessibility](docs/accessibility.md) · [Coding agents](docs/agents.md) · [API reference](docs/api/README.md)
10
10
 
11
11
  - Real-markdown authoring: headers and bullet lists nest the tree.
12
12
  - YAML alternative for app-generated maps.
@@ -87,6 +87,8 @@ hydrateOrbitBlocks(container); // turns them into live m
87
87
 
88
88
  **Without a browser,** `renderToSVGString(markdown, { width: 1200, height: 800 })` draws a standalone SVG, for static sites, emails and print.
89
89
 
90
+ **On paper,** `renderPrintLayout(element, markdown)` lays a map out for print or PDF: the map as a picture, then every idea with its note. Maps shared as web pages print that way.
91
+
90
92
  [The guide](docs/guide.md) covers every option, event and method, and [Recipes](docs/recipes.md) shows Orbit in Vue, Svelte, Astro, Next.js and static sites.
91
93
 
92
94
  ## Write a map
@@ -130,8 +132,9 @@ npx @restless-dreams/orbit validate my-map.md # every problem a
130
132
  npx @restless-dreams/orbit validate --json my-map.md # the same as JSON, for scripts and coding agents
131
133
  npx @restless-dreams/orbit validate --tree my-map.md # the map as Orbit reads it, with each node's id
132
134
  npx @restless-dreams/orbit render my-map.md --out my-map.svg # draw a map to SVG (--view all for the whole map)
133
- npx @restless-dreams/orbit export --html my-map.md --out my-map.html # one web page to explore or present the map, offline
135
+ npx @restless-dreams/orbit export --html my-map.md --out my-map.html # one web page to explore, present or print the map, offline
134
136
  npx @restless-dreams/orbit convert --to yaml my-map.md # markdown ↔ YAML (either direction)
137
+ npx @restless-dreams/orbit convert --to md Plan.xmind --out plan.md # a map from XMind, FreeMind, Freeplane or OPML (--to opml writes OPML)
135
138
  npx @restless-dreams/orbit example > my-map.md # a map with the main features (--yaml for YAML)
136
139
  ```
137
140